import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Login',
      component: () => import('../views/RBAC/Loginn.vue'),
    },
    {
      path: '/MenuView',
      name: 'MenuView',
      component: () => import('../views/MenuView.vue'),
      children:[
        
      ]
    },
    {
      path: '/product',
      name: 'product',
      component: () => import('../views/Traceability/Productt.vue'),
    },
    {
      path: '/productadd',
      name: 'productadd',
      component: () => import('../views/Traceability/Productaddd.vue'),
    }
    // {
    //   path: '/Permission',
    //   name: 'Permission',
    //   component: () => import('../views/User/Permission.vue'),
    // },
  ],
})

export default router
